﻿//---------------------------------------
//数据加载
// DataGrid
//---------------------------------------

//---------------------------------------
// 数据编辑
// DataGrid
//---------------------------------------


//---------------------------------------
//事件绑定
//dojo.on
//---------------------------------------
require(["dojo/on", "dojo/dom", "dojo/dom-style", "dojo/mouse", "dojo/domReady!"], function (on, dom, domStyle, mouse) {
    var myButton = dom.byId("myButton"), myDiv = dom.byId("myDiv");
    on(myButton, "click", function (evt) {
        domStyle.set(myDiv, "backgroundColor", "blue");
    });
    on(myDiv, mouse.enter, function (evt) { domStyle.set(myDiv, "backgroundColor", "red"); });
    on(myDiv, mouse.leave, function (evt) { domStyle.set(myDiv, "backgroundColor", ""); });
});
// --------------------------------------
// 树数据加载
// --------------------------------------
//

